﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VelesPresentation
{
    public class SecurityPresenter: Presenter 
    {
        ISecurityView view;

        public SecurityPresenter(ISecurityView view)
        {
            this.view = view;
            view.UserLogon += new VoidEventHandler(view_UserLogon);    

        }

        void view_UserLogon()
        {
            view.UserGroup = service.GetUserGroup(view.UserLogin, view.UserPassword);
        }
    }
}
